#pragma once

#include "DrawNode.h"

class SpriteNode : public DrawNode
{
private:
	int texture, orientation;
	XY scale;
public:
	SpriteNode()	{Type = SPRITE; scale = XY(1);}

	void setData(SpriteInfo info)	{texture = (info.reference+info.currentTexture); orientation = info.orientation; scale = info.scale; pos = info.pos; color = info.color;}
	int getTexture()		{return texture;}
	int getOrientation()	{return orientation;}
	XY getScale()			{return scale;}
};